#!/user/bin/env python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# @File : login_assert.py
# @Time : 2022-05-31 09:17
# @Author : mojin
# @Email : 397135766@qq.com
# @Software : PyCharm
#-------------------------------------------------------------------------------


from common.logger import Logger
from base.basePage import BasePage
from business.login.login_page import LoginPage
class Login_Assert:

    def __init__(self, driver):
        self.driver = BasePage(driver)



    def login_assert(self, expect_text):
        result=[
               expect_text[0] in self.driver.get_text(*LoginPage.tvNickName,doc="断言：登录的账户id和获取的id是否相等" ) ,
        ]

        return False not in result
